class CreateFavorites < ActiveRecord::Migration
  def self.up
    create_table :favorites do |t|
      t.column :quotation_id, :integer,   :null => false
      t.column :user_id,      :integer,   :null => false
      t.column :created_at,   :datetime,  :null => false
      t.column :updated_at,   :datetime,  :null => false
      t.column :lock_version, :integer,   :null => false, :default => 0
    end
  end

  def self.down
    drop_table :favorites
  end
end
